<!-- 排序方式 -->
<div class="weiba-sort f8 mb20"> <span class="right">排序方式：<a href="javascript:;" onclick="weiba.order.ajaxList(<?php echo ($weiba_id); ?>, <?php echo ($post_id); ?>, <?php echo ($post_uid); ?>, <?php echo ($feed_id); ?>, 'digg');" 
  <?php if(($type)  ==  "digg"): ?>class="current"<?php endif; ?>
  >赞</a><a href="javascript:;" 
  <?php if(($type)  ==  "time"): ?>class="current"<?php endif; ?>
  onclick="weiba.order.ajaxList(<?php echo ($weiba_id); ?>, <?php echo ($post_id); ?>, <?php echo ($post_uid); ?>, <?php echo ($feed_id); ?>, 'time')">回复时间</a></span> <span>共有<span id="reply_count"><?php echo ($list["count"]); ?></span>条评论</span> 
</div>
<!--评论列表-->
<?php if(($showlist)  ==  "1"): ?><div class="weiba-com" id="commentlist_<?php echo ($post_id); ?>">
  <?php if(is_array($list["data"])): ?><?php $k = 0;?><?php $__LIST__ = $list["data"]?><?php if( count($__LIST__)==0 ) : echo "" ; ?><?php else: ?><?php foreach($__LIST__ as $key=>$vo): ?><?php ++$k;?><?php $mod = ($k % 2 )?><div class="list" id="item_<?php echo ($vo["reply_id"]); ?>">
      <dl model-node="comment_list">
        <dt><a href="<?php echo ($vo["user_info"]["space_url"]); ?>"><img width="50" height="50" src="<?php echo ($vo["user_info"]["avatar_small"]); ?>"></a><?php if($vo['user_info']['group_icon_only']): ?><a href="javascript:;" title="<?php echo ($vo['user_info']['group_icon_only']['user_group_name']); ?>" class="group_icon_only"><img alt="<?php echo ($vo['user_info']['group_icon_only']['user_group_name']); ?>" src="<?php echo ($vo['user_info']['group_icon_only']['user_group_icon_url']); ?>" ></a><?php endif; ?></dt>
        <dd>
          <p class="cont mb5"> <?php echo ($vo["user_info"]["space_link"]); ?>
            <span class="date">发表于&nbsp;<?php echo (friendlydate($vo["ctime"])); ?></span><span class="floor">
            <?php $page = isset($_REQUEST['p']) ? $_REQUEST['p'] : 1; ?>
            <?php echo ($k+(($page-1)*$limit)); ?>
            楼</span> </p>
          <p class="det-c"><?php echo ($vo["content"]); ?></p>
          <?php if($vo['attach_info']['attach_type'] == 'weiba_comment_file'): ?>
          <div class="feed_file_list mt10 mb10">
            <ul>
              <li> <a href="<?php echo U('widget/Upload/down',array('attach_id'=>$vo['attach_info']['attach_id']));?>" class="current right" title="下载"><i class="ico-down"></i></a> <i class="ico-<?php echo ($vo["attach_info"]["extension"]); ?>-small"></i> <a href="<?php echo U('widget/Upload/down',array('attach_id'=>$vo['attach_info']['attach_id']));?>"><?php echo ($vo["attach_info"]["name"]); ?></a> <span class="tips">(<?php echo (byte_format($vo["attach_info"]["size"])); ?>)</span> </li>
            </ul>
          </div>
          <?php endif; ?>
        </dd>
      </dl>

      <?php if($vo['attach_info']['attach_type'] == 'weiba_comment_image' || $vo['attach_info']['attach_type'] == 'feed_image'): ?>
      <div class="feed_img_lists" style="padding-left:70px;">
        <ul class="small" style="width:100%">
          <li style="width:100%;height:100%"><a href="javascript:;"><img src="<?php echo ($vo['attach_info']['attach_url']); ?>"/></a></li>
        </ul>
      </div>
      <?php endif; ?>
      <p class="info textR"><span> <?php echo W('ReplyDigg', array('row_id'=>$vo['reply_id'], 'digg_count'=>$vo['digg_count'], diggArr=>$diggArr));?><i class="vline">|</i>
        <?php $isdel=0;
          if( ($vo['user_info']['uid'] == $GLOBALS['ts']['mid'] && CheckPermission('weiba_normal','weiba_del_reply')) || in_array($GLOBALS['ts']['mid'],$weiba_admin) || CheckPermission('core_admin','comment_del')){ ?>
        <?php $isdel=1; ?>
        <a href="javascript:void(0);" event-node="reply_del" event-args="reply_id=<?php echo ($vo["reply_id"]); ?>"><?php echo L('PUBLIC_STREAM_DELETE');?></a> 
        <!-- <a href="<?php echo U('weiba/Index/replyEdit',array('reply_id'=>$vo['reply_id']));?>">编辑</a>
  <i class="vline">|</i> -->
        <?php } ?>
        <?php if(CheckPermission('weiba_normal','weiba_reply') || !$GLOBALS['ts']['mid']){ ?>
        <?php if(($cancomment)  ==  "1"): ?><?php if($isdel){ ?>
          <i class="vline">|</i>
          <?php } ?>
          <a href="javascript:void(0)" event-args='weiba_id=<?php echo ($weiba_id); ?>&post_id=<?php echo ($post_id); ?>&post_uid=<?php echo ($post_uid); ?>&to_reply_id=<?php echo ($vo["reply_id"]); ?>&to_uid=<?php echo ($vo["uid"]); ?>&to_comment_uname=<?php echo ($vo["user_info"]["uname"]); ?>&feed_id=<?php echo ($feed_id); ?>&comment_id=<?php echo ($vo["comment_id"]); ?>&addtoend=<?php echo ($addtoend); ?>' 
    event-node="reply_reply"><i class="ico-reply"></i><?php echo L('PUBLIC_STREAM_REPLY');?></a> 
          <!--  <a href="javascript:void(0)" event-args='row_id=<?php echo ($vo["row_id"]); ?>&weiba_id=<?php echo ($weiba_id); ?>&post_id=<?php echo ($post_id); ?>&post_uid=<?php echo ($post_uid); ?>&to_reply_id=<?php echo ($vo["reply_id"]); ?>&to_uid=<?php echo ($vo["uid"]); ?>&to_comment_uname=<?php echo ($vo["user_info"]["uname"]); ?>&feed_id=<?php echo ($feed_id); ?>' 
    event-node="reply_reply"><?php echo L('PUBLIC_STREAM_REPLY');?></a> --> 
          <!-- <a href="javascript:ui.reply(1979)"><?php echo L('PUBLIC_STREAM_REPLY');?></a> --><?php endif; ?>
        <?php } ?>
        </span></p>
    </div><?php endforeach; ?><?php endif; ?><?php else: echo "" ;?><?php endif; ?>
</div>

<!--页码-->
<?php if(($list["html"])  !=  ""): ?><div id="page" class="page" style="padding: 10px 0px 20px 0px;"> <?php echo ($list["html"]); ?> </div><?php endif; ?>
<!--页码/end--><?php endif; ?>

<!-- 评论框 -->
<div class="send_weibo" style="border:none;padding-bottom:0px">
  <div class="box">
    <?php if(CheckPermission('weiba_normal','weiba_reply')){ ?>
    <!--评论框-->
    <?php if(($cancomment)  ==  "1"): ?><div class="input" model-node="comment_textarea">
        <div class="input_before1" model-node="mini_editor">
          <textarea class="input_tips" id="comment_inputor" event-node="mini_editor_textarea" hidefocus="true" model-args='t=comment'></textarea>
          <div model-node="numsLeft" class="num"><?php echo ($initNums); ?></div>
        </div>
        <div class="action clearfix" style="width:100%;display:table">
          <div class="right" style="width:225px"> 
            <!--[if !IE]><!-->
            <label style="float:left;display:inline-block" class="mr5">
              <input type="checkbox" class="checkbox regular-checkbox" name="shareFeed" value="1" id="shareFeed">
              <span for="shareFeed"></span>
              <?php echo L('PUBLIC_SHARETO_STREAM');?>
            </label>
            <!--<![endif]--> 
            <!--[if IE]>
            <label style="float:left;display:inline-block" class="mr5"><input type="checkbox" class="checkbox" name="shareFeed" checked="checked" value="1"><?php echo L('PUBLIC_SHARETO_STREAM');?></label>
            <![endif]--> 
            <a href="javascript:void(0);" class="btn-green-small" event-node="do_weiba_reply" 
event-args='' weiba_id="<?php echo ($weiba_id); ?>" post_id="<?php echo ($post_id); ?>"  post_uid="<?php echo ($post_uid); ?>" feed_id="<?php echo ($feed_id); ?>" addtoend="<?php echo ($addtoend); ?>" to_reply_id="0" to_uid="0" list_count=<?php echo ($list["count"]); ?>><span><?php echo L('PUBLIC_STREAM_REPLY');?></span></a> </div>
          <div class="acts"> <a class="face-block" href="javascript:;" event-node="comment_insert_face" title="表情"><i class="face"></i>表情</a> <a class="image-block" href="javascript:;" title="图片"><i class="image"></i>图片
            <form style='display:inline;padding:0;margin:0;border:0;outline:none;' >
              <input limit="1" type="file" name="attach" inputname='attach' onchange="core.plugInit('uploadFile',this,'','image')" urlquery='attach_type=weiba_comment_image&upload_type=image&thumb=1&width=590' hidefocus="true">
            </form>
            </a> <a class="file-block" href="javascript:;" title="附件"><i class="file"></i>附件
            <form style='display:inline;padding:0;margin:0;border:0' >
              <input limit="1" type="file" name="attach" inputname='attach' onchange="core.plugInit('uploadFile',this,'','all')" urlquery='attach_type=weiba_comment_file&upload_type=file' hidefocus="true">
            </form>
            </a> 

            </div>
          <div class="clear"></div>
          <div model-node="faceDiv"></div>
        </div>
      </div>
      <script>
        var initNums = '<?php echo ($initNums); ?>';
        //shortcut('ctrl+return', replycomment , {target:'mini_editor_textarea'});
        setTimeout(function() {
          atWho($("textarea#comment_inputor"));
        }, 1000);
      </script>
      <?php else: ?>
      <div class="nologin">您还未登录，请<a class="nologin-a" href="javascript:ui.quicklogin();">&nbsp;登录</a>&nbsp;or&nbsp;<a class="nologin-a" href="<?php echo U('public/Register/index');?>">注册</a></div><?php endif; ?>
    <?php } ?>
  </div>
</div>